import request from '@/utils/request'

// 查询入库信息列表
export function listStorageInformation(query) {
  return request({
    url: '/system/storageInformation/list',
    method: 'get',
    params: query
  })
}

// 查询入库信息详细
export function getStorageInformation(warehouseId) {
  return request({
    url: '/system/storageInformation/' + warehouseId,
    method: 'get'
  })
}

// 新增入库信息
export function addStorageInformation(data) {
  return request({
    url: '/system/storageInformation',
    method: 'post',
    data: data
  })
}

// 修改入库信息
export function updateStorageInformation(data) {
  return request({
    url: '/system/storageInformation',
    method: 'put',
    data: data
  })
}

// 删除入库信息
export function delStorageInformation(warehouseId) {
  return request({
    url: '/system/storageInformation/' + warehouseId,
    method: 'delete'
  })
}
